<!--------------------------- begin  内容  ------------------------------------>
<div class="content">
<div class="box1 howto-get-prize">
    <h1 class="alert-color">领奖方法：</h1>
    <p>
        请联系优品客服，添加为好友，提供奖品的兑奖密码，核对信息无误后，
        <br>按照客服要求提供信息即可在家坐等收货！我们将为您支付相关费用，不需要您花一分钱。</p>
    <button class="auction_contact_service contact_us">联系优品客服兑奖</button>
</div>
<!---------------- 我的获奖历史 ------------------->
<h1 class="heading heading-wd">我的获奖历史
    <a href="<?php echo site_url("c=auction&");?>" class="back-to-auction">返回今日竞拍</a>
</h1>
<?php if (count($historyData['exchangeself'])>0 || count($historyData['auctionself'])>0):?>
<ul class="list1 clearfix my-prizes">
	<!-- 兑换 -->
	<?php foreach ($historyData['exchangeself'] as $item):?>
	<li <?php if ($item['isreceive'] || $item['isInvalid'] || $item['isExceedTheTimeLimit']) echo 'class="my-unavailable-prize"' ?>>
		<h4><span><?php echo $item['name'] ?></span></h4>
		<img src="<?php echo $item['pic'] ?>" style="width: 200px;height: 200px;"/>
		<div class="list1-action1">
			<span class="bigger">市场价: <strong><?php echo $item['pirce'] ?></strong> 元</span><br/>
			<span class="time">竞拍时间：<?php echo date("Y-m-d",$item['auctionTime']); ?></span><br/>
			<button class="style3-button exchange-code" data-id="<?php echo $item['agid'] ?>" data-pdate="<?php echo $item['auctionDate'];?>" data-exchangegold="<?php echo $item['exchangeGold'];?>">查看兑奖密码</button>
		</div>
		<?php if ($item['isreceive'] || $item['isInvalid'] || $item['isExceedTheTimeLimit']) :?>
		<div class="<?php if($item['isreceive']) echo "my-got-prize"; if($item['isInvalid']) echo "my-invalid-prize";if($item['isExceedTheTimeLimit']) echo "my-expired-prize" ?>"></div>
		<?php endif; ?>
	</li>
	<?php endforeach; ?>
	<!-- 竞拍 -->
	<?php foreach ($historyData['auctionself'] as $item):?>
	<li <?php if ($item['isreceive'] || $item['isInvalid'] || $item['isExceedTheTimeLimit']) echo 'class="my-unavailable-prize"' ?> data-aid="<?php echo $item['aid'] ?>">
		<h4><span><?php echo $item['name'] ?></span><span></span></h4>
		<img src="<?php echo $item['pic'] ?>" style="width: 200px;height: 200px;"/>
		<div class="list1-action1">
			<span class="bigger">市场价: <strong><?php echo $item['pirce'] ?></strong> 元</span><br/>
			<span class="time">竞拍时间：<?php echo date("Y-m-d",$item['auctionTime']); ?></span><br/>
			<button class="style3-button auction-code" data-id="<?php echo $item['id'] ?>">查看兑奖密码</button>
		</div>
		<?php if ($item['isreceive'] || $item['isInvalid'] || $item['isExceedTheTimeLimit']) :?>
		<div class="<?php if($item['isreceive']) echo "my-got-prize"; if($item['isInvalid']) echo "my-invalid-prize";if($item['isExceedTheTimeLimit']) echo "my-expired-prize" ?>"></div>
		<?php endif; ?>
	</li>
	<?php endforeach; ?>
</ul>
<?php else:?>
<p class="my-prize-empty">您暂无获奖历史，<a href="index.php?c=auction">赶紧前往竞拍吧~</a></p>
<?php endif;?>
<!---------------- 所有获奖记录 ------------------->
<h1 class="heading heading-wd">所有获奖记录</h1>
<?php foreach ($historyData['TenDayAgoData'] as $key=>$item):?>
<h2 class="sub-heading"><?php echo date("m 月 d 日",strtotime($key));//.$item['exchangeDate'];?></h2>
<ul class="list1 clearfix list-hover3">
<!-- 兑换 -->
	<?php if(isset($item['exchangeSucc']) && count($item['exchangeSucc'])>0):foreach ($item['exchangeSucc'] as $item2):?>
    <li class="auc_his" data-url="<?php echo $item2['url'];?>">
        <div class="auction-winner text-overflow">
            <!-- <span>获奖者：</span><?php //echo $item2['nickname'];?> -->
        </div>
        <div class="auction-prize">
            <img src="<?php echo $item2['pic'];?>">
            <span> <b class="text-overflow"><?php echo $item2['name'];?></b> <font>¥<span><?php echo $item2['price'];?></span></font>
            </span>
        </div>
        <div class="list1-mask"></div>
        <button class="style3-button results duihuanXq" data-id="<?php echo $item2['id'];?>" data-pdate="<?php echo $item2['pDate'];?>" data-exchangegold="<?php echo$item2['exchangeGold'];?>">查看详情</button>
    </li>
    <?php endforeach;endif;?>
<!-- 竞拍 -->
	<?php if(isset($item['auctionSucc']) && count($item['auctionSucc'])>0):foreach ($item['auctionSucc'] as $item2):?>
    <li class="auc_his">
        <div class="auction-winner text-overflow">
            <span>获奖者：</span><?php echo $item2['nickname'];?>
        </div>
        <div class="auction-prize">
            <img src="<?php echo $item2['pic'];?>">
            <span> <b class="text-overflow"><?php echo $item2['name'];?></b> <font>¥<?php echo $item2['price'];?></font>
            </span>
        </div>
        <div class="list1-mask"></div>
        <button class="style3-button results jinpaiXq" data-id="<?php echo $item2['id'];?>">查看详情</button>
    </li>
    <?php endforeach;endif;?>
</ul>
<?php endforeach;?>
<div class="day_before clearfix">        
      <a href="<?php echo site_url("c=auction");?>" class="today2">返回今日竞拍</a>
</div>
</div>
<!---------------------------------- end  内容 ------------------------------------------>
<div class="hr"></div>
<!-- 页面js  --> 
<script src="<?php echo base_url("javascript/auction.js?v=2014070401");?>" type="text/javascript"></script>